﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Student_Score_System
{
        [AttributeUsage(AttributeTargets.Field)]
        public class StringLengthAttribute : Attribute
        {
            private int _maxLength;
            public StringLengthAttribute(int maxLength)
            {
                _maxLength = maxLength;
            }

            public int MaxLength
            {
                get { return _maxLength; }
            }
        }
}
